const get_key = (value,the)=>{
    Object.keys(value).forEach(key =>{
        the[key] = value[key]
    })
}
class Card {
    constructor(value){
        this.label = 'Card'
        if(value && JSON.stringify(value)!='{}'){
            get_key(value,this)
        }
        
    }
}
class Divider {
    constructor(value){
        this.label = 'Divider'
        Object.keys(value).forEach(key =>{
            this[key] = value[key]
        })
        
    }
}
export default {
    Card,
    Divider
}